<?php
return [
    'id' => 'student-form',
    'template' => 'form_default',
    'enableClientValidation' => false,
    'enableAjaxValidation' => true,
    'options' => [],
    'models' => [
        'student' => [
            'title' => '绑定学员',
            'th_with' => 80,
            'elements' => [
                'name' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'nickname' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'birthday' => [
                    'type' => 'text',
                    'options' => ['class' => 'datetimepicker input-text']
                ],
                'IDcard' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'img'=>[
                    'type'=>'widget',
                    'class'=>\doumiaoduo\ueditor\ImageUploadSingle::className(),
                    'options'=>[
                        'class'=>'input-text',
                    ],
                    'clientOptions'=>[
                        'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action'])
                    ],
                    'buttonOptions'=>[
                        'class'=>'button'
                    ]
                ],
                'blood_type' => [
                    'type'=>'widget',
                    'class'=> \kartik\select2\Select2::className(),
                    'data' => ['A'=>'A','B'=>'B','O'=>'O','AB'=>'AB','RH'=>'RH'],
                    'options' => ['placeholder' => '请选择...'],
                ],
                'sex'=>[
                    'type' => 'radiolist',
                    'item' =>[0=>'女',1=>'男'],
                ],
                'school' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'age' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'hobby' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'father_phone' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'father_company' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'mother_phone' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'mother_company' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'address' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'finish_studying' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'intention_studying' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'source' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'company_type' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'main_contacts' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
                'main_phone' => [
                    'type' => 'text',
                    'options' => ['class' => 'input-text']
                ],
            ],
        ]
    ]

];
